<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>添加博客</title>
</head>
<body>
<form class="user" name="blogAdd" method="post" th:action="@{/blog/add}" th:object="${blog}">
    <input type="hidden" id="id" name="id" th:value="${blog?.id}">
    <div >
        <div >
            博客标题：
            <input type="text"  th:field="*{title}" placeholder="博客标题">
        </div>
    </div>

    <div >
        <div >
            博客内容：
            <input type="text"  th:field="*{content}" placeholder="博客内容">
        </div>
        <div >
            分类：
            <input type="text" th:field="*{type}" placeholder="分类">
        </div>
    </div>
    <div >
        <div >
            标签：<input type="text"  id="label" name="label" placeholder="标签" th:value="${blog?.label}">
        </div>
    </div>
    <div >
        <div >
            评论：<input type="text"  id="comment" name="comment" placeholder="评论" th:value="${blog?.comment}">
        </div>
    </div>

    <input type="submit" value="添加/修改" class="btn btn-success" >
</form>

</body>
</html>